<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-3-1
 * Time: 下午2:01
 */

namespace common\models;


/**
 * Class EdiviOrderSendLogs
 * @package common\models
 *
 * @property EdiviCreditOrder $ediviCreditOrder
 */
class EdiviOrderSendLogs extends \common\models\base\EdiviOrderSendLogs
{
    const STATUS_CREDIT_SEND = 90; // 征信发起
    const STATUS_GENERATE_CARD_SEND = 100; // 开卡
    const STATUS_DIVI_SEND = 101; // 分期
    const STATUS_YPBU_SEND = 110; // 押品补录
    const STATUS_CLBU_SEND = 120; // 材料补录
    const YPBU_STATUS_DEFAULT = 130;
    const CLBU_STATUS_DEFAULT = 140;
    const STATUS_ORDER_APPLY = 150; // 订单申请(退回)
    const STATUS_COMPENSATION_ASSOCIATES = 160; // 补查关联人

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrder()
    {
        return $this->hasOne(EdiviCreditOrder::className(), ['id' => 'edivi_credit_order_id']);
    }
}